﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F5D RID: 3933
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicScepter : IMessage<RogueMagicScepter>, IMessage, IEquatable<RogueMagicScepter>, IDeepCloneable<RogueMagicScepter>, IBufferMessage
	{
		// Token: 0x170031EB RID: 12779
		// (get) Token: 0x0600B04D RID: 45133 RVA: 0x001DCFE8 File Offset: 0x001DB1E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicScepter> Parser
		{
			get
			{
				return RogueMagicScepter._parser;
			}
		}

		// Token: 0x170031EC RID: 12780
		// (get) Token: 0x0600B04E RID: 45134 RVA: 0x001DCFEF File Offset: 0x001DB1EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicScepterReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170031ED RID: 12781
		// (get) Token: 0x0600B04F RID: 45135 RVA: 0x001DD001 File Offset: 0x001DB201
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicScepter.Descriptor;
			}
		}

		// Token: 0x0600B050 RID: 45136 RVA: 0x001DD008 File Offset: 0x001DB208
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepter()
		{
		}

		// Token: 0x0600B051 RID: 45137 RVA: 0x001DD010 File Offset: 0x001DB210
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepter(RogueMagicScepter other) : this()
		{
			this.scepterId_ = other.scepterId_;
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B052 RID: 45138 RVA: 0x001DD041 File Offset: 0x001DB241
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicScepter Clone()
		{
			return new RogueMagicScepter(this);
		}

		// Token: 0x170031EE RID: 12782
		// (get) Token: 0x0600B053 RID: 45139 RVA: 0x001DD049 File Offset: 0x001DB249
		// (set) Token: 0x0600B054 RID: 45140 RVA: 0x001DD051 File Offset: 0x001DB251
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScepterId
		{
			get
			{
				return this.scepterId_;
			}
			set
			{
				this.scepterId_ = value;
			}
		}

		// Token: 0x170031EF RID: 12783
		// (get) Token: 0x0600B055 RID: 45141 RVA: 0x001DD05A File Offset: 0x001DB25A
		// (set) Token: 0x0600B056 RID: 45142 RVA: 0x001DD062 File Offset: 0x001DB262
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x0600B057 RID: 45143 RVA: 0x001DD06B File Offset: 0x001DB26B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicScepter);
		}

		// Token: 0x0600B058 RID: 45144 RVA: 0x001DD079 File Offset: 0x001DB279
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicScepter other)
		{
			return other != null && (other == this || (this.ScepterId == other.ScepterId && this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B059 RID: 45145 RVA: 0x001DD0B8 File Offset: 0x001DB2B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ScepterId != 0U)
			{
				num ^= this.ScepterId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B05A RID: 45146 RVA: 0x001DD110 File Offset: 0x001DB310
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B05B RID: 45147 RVA: 0x001DD118 File Offset: 0x001DB318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B05C RID: 45148 RVA: 0x001DD124 File Offset: 0x001DB324
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ScepterId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.ScepterId);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Level);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B05D RID: 45149 RVA: 0x001DD180 File Offset: 0x001DB380
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ScepterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScepterId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B05E RID: 45150 RVA: 0x001DD1D8 File Offset: 0x001DB3D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicScepter other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ScepterId != 0U)
			{
				this.ScepterId = other.ScepterId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B05F RID: 45151 RVA: 0x001DD228 File Offset: 0x001DB428
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B060 RID: 45152 RVA: 0x001DD234 File Offset: 0x001DB434
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Level = input.ReadUInt32();
					}
				}
				else
				{
					this.ScepterId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004778 RID: 18296
		private static readonly MessageParser<RogueMagicScepter> _parser = new MessageParser<RogueMagicScepter>(() => new RogueMagicScepter());

		// Token: 0x04004779 RID: 18297
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400477A RID: 18298
		public const int ScepterIdFieldNumber = 3;

		// Token: 0x0400477B RID: 18299
		private uint scepterId_;

		// Token: 0x0400477C RID: 18300
		public const int LevelFieldNumber = 6;

		// Token: 0x0400477D RID: 18301
		private uint level_;
	}
}
